import { request } from "./utils";

export function getHotelUserByPage(query) {
  return request({
    url: "/hotel/user/page",
    method: "get",
    params: query
  });
}
export function getHotelUserById(userId) {
  return request({
    url: "/hotel/user/getUserById/" + userId,
    method: "get"
  });
}
export function updateHotelUser(data) {
  return request({
    url: "/hotel/user/edit",
    method: "put",
    data: data
  });
}
export function switchHotelUserStatus(data) {
  return request({
    url: "/hotel/user/switchStatus",
    method: "put",
    data: data
  });
}

export function addHotelUser(data) {
  return request({
    url: "/hotel/user/add",
    method: "post",
    data: data
  });
}
export function addHotelUserAuthRole(data) {
  return request({
    url: "/hotel/user/authRole",
    method: "post",
    data: data
  });
}
export function deleteHotelUser(userId) {
  return request({
    url: "/hotel/user/delete/" + userId,
    method: "delete"
  });
}
